﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <%@ include file="/WEB-INF/include/menu.jsp"%>

  <div class="container main-content">

    <div class="panel panel-default x-panel x-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/ecommerce">电商管理</a></li>
          <li class="active">积分优惠券管理</li>
          <li class="no-before pull-right" style="min-width: 65px;">
            <a onclick="window.history.back();"><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;返回</a>
          </li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 x-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 x-panel-layout-right">

          <div class="x-breadcrumb-wrapper">
            <div class="x-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire"></i>&nbsp;&nbsp;<span>积分优惠券管理&nbsp;-&nbsp;积分优惠券文案</span></h2>
            </div>
          </div>
          
          
          <form action="${ctx.host}/credit-coupon-batches/${id}/description" method="post">
            
            <input type="hidden" name="_method" value="PATCH">
            <input type="hidden" name="keys">
            
            <div class="x-breadcrumb-wrapper top-margin-20">
              
              <ul class="nav nav-pills x-breadcrumb-nav">
                <li class="pull-left"><a href="${ctx.host}/credit-coupon-batches/${id}">基本信息</a></li>
                <li class="pull-left active"><a href="${ctx.host}/credit-coupon-batches/${id}/description/edit">批次文案</a></li>
                <%-- <li class="pull-left"><a href="${ctx.host}/products/1/description/edit">产品文案</a></li> --%>
              </ul>
            </div>
  
            <script id="editor" name="description" type="text/plain" class="form-horizontal" style="margin-bottom: 20px; margin-top: 30px; height: 500px;"></script>
            
            <div class="modal-footer">
              
              <button type="submit" id="editDescription" class="btn btn-warning btn-shadow btn-shadow-warning x-btn">
                <i class="glyphicon glyphicon-save"></i>&nbsp;&nbsp;保存
              </button>
            </div>
          
          </form>
          
        </div>

      </div>
      
    </div>
    
  </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>
  
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/encommerce/credit/credit-coupon-batch-description.js">
    <script type="text/javascript">
      
      document.domain = window.__CTX__.rootDomain;
    
      function uploadedCallback(response) {
        localStorage.setItem('uploadedData', JSON.stringify(response));
      }
      
      var productId = '${id}';
      require(['page/encommerce/credit/credit-coupon-batch-description'],function(page){
          page.init(productId);
      })
      
    </script>
  </d:resource>
 
 
</body>

</html>